﻿@model IEnumerable<MvcApplication1.User>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if (Request.IsAuthenticated)
{
    <text>Welcome!</text>  
}

<table>
    <tr>
        <th>
            ULogin
        </th>
        <th>
            UPassword
        </th>
        <th>
            UName
        </th>
        <th>
            USName
        </th>
        <th>
            UCity
        </th>
        <th>
            Uemail
        </th>
        <th>
            UDate
        </th>
        <th>
            URuleID
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ULogin)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UPassword)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.USName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UCity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Uemail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.URuleID)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.UserID }) |
            @Html.ActionLink("Details", "Details", new { id=item.UserID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.UserID })
        </td>
    </tr>
}

</table>
